package cn.com.xuhx.impl;

import cn.com.xuhx.HelloService;

import java.text.SimpleDateFormat;
import java.util.Date;

public class HelloServiceImpl implements HelloService {
    public String sayHello(String content) {
        return "Hello " + content;
    }

    public String ryInfo(Date bornDay, int age, String name) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(bornDay) + "；" + age + "；" + name;
    }
}
